import sys, time, re, json
import sqlite3
import math, collections, itertools
import spade, nltk
from os import walk

hotels = collections.defaultdict(dict)

path = "../datasets/hotel/"
for (_, _, filenames) in walk(path):
	for f in filenames[:1]:
		w = open(path + f,'r')
		hotels[f]['hotel'] = json.loads(w.readline())
		hotels[f]['reviews'] = []
		for line in w:
			hotels[f]['reviews'].append(json.loads(line))

for i in hotels:
	print hotels[i]['hotel']
	print hotels[i]['reviews']


